{% extends "admin/base_site.html" %}
{% load adminmedia admin_list i18n %}
{% block coltype %}flex{% endblock %}
{% block content %}
<div id="content-main">
<a href=../stats/>Statistiques</a>
<div class="module">
<h2>Liste matériel ({{ object_list.count }} items)</h2>
<table>
<tr><th>réf</th><th>disponibilité</th><th>label</th><th>location (€)</th></tr>
{% for ob in object_list %}
<tr class="{% cycle 'row1' 'row2' %}">
<td>{{ ob.ref }}</td>
<td>
<img src={% admin_media_prefix %}img/admin/icon-{% if ob.item.dispo %}yes{% else %}no{% endif %}.gif>
</td><td>{{ ob.item.label }}</td><td>{{ ob.rent }}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
{% endblock %}
